import request from './request'

export function login(data:any) {
    return request({
        url: '/base/user/logIn',
        method: 'post',
        data
    })
}

export function register(data:any) {
    return request({
        url: '/base/user/register',
        method: 'post',
        data
    })
}

export function uploadAvatar(data:any) {
    return request({
        url: '/base/user/uploadAvatar',
        method: 'post',
        data
    })
}

export function getUserDetail() {
    return request({
        url: '/base/user/detail',
        method: 'get'
    })
}

export function updateUserInfo(data:any) {
    return request({
        url: '/base/user/update',
        method: 'post',
        data
    })
}